<!DOCTYPE html>
<html>
<head>
    <#include "../common.ftl">
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
    <input name="id" type="hidden" value="${(customer.id)!}"/>
    <input name="areaId" type="hidden" value="${(customer.areaId)!}"/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">客户名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input name"
                   name="name" id="name"  value="${(customer.name)!}" placeholder="客户名称">
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">联系电话</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input number"
                   name="number" id="number" value="${(customer.number)!}" placeholder="请输入联系电话">
        </div>
    </div>
    <div class="layui-col-xs12">
        <label class="layui-form-label">小区名称</label>
        <div class="layui-input-block">
            <select id="areaId" name="areaId" lay-verify="required" lay-search class="select">
                <option value="0" >请选择</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">联系地址</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input address"
                   name="address" id="address" value="${(customer.address)!}" placeholder="请输入联系地址">
        </div>
    </div>
    <div class="layui-col-xs12">
        <label class="layui-form-label">注册日期</label>
        <div class="layui-input-block">
            <input type="text" name="registerDate" id="registerDate" lay-verify="registerDate"
                   placeholder="yyyy-MM-dd" autocomplete="off" readonly="readonly" class="layui-input">
        </div>
    </div>

<#--    <div class="layui-form">-->
<#--        <div class="layui-form-item">-->
<#--            <div class="layui-inline">-->
<#--                <label class="layui-form-label">注册日期</label>-->
<#--                <div class="layui-input-inline">-->
<#--                    <input type="text" class="layui-input" id="registerDate" name="registerDate" value='${(customer.registerDate)?string("yyyy-MM-dd")!""}'-->
<#--                           placeholder="yyyy-MM-dd">-->
<#--                </div>-->
<#--            </div>-->
<#--        </div>-->
<#--    </div>-->

    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input remarks"
                   name="remarks" id="remarks" value="${(customer.remarks)!}" placeholder="请输入备注">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">是否拉黑</label>
        <div class="layui-input-block">
            <select name="isBlack"  id="isBlack" lay-verify="required">
                <option value="否" <#if "${(customer.isBlack)!}"=="否">selected="selected"</#if>>否</option>
                <option value="是" <#if "${(customer.isBlack)!}"=="是">selected="selected"</#if>>是</option>
            </select>
        </div>
    </div>
    <br/>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-lg" lay-submit=""
                    lay-filter="addOrUpdateCustomer">确认
            </button>
            <a class="layui-btn layui-btn-lg layui-btn-normal"  id="closeDlg" href="javascript:void(0)">取消</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="${ctx.contextPath}/js/customer/add.js"></script>
</body>
</html>
